package com.immediatus.engine.image;

import com.immediatus.graphics.texture.region.TabledTextureRegion;
import com.immediatus.graphics.vertex.RectangleVertexBuffer;

public class MultiImageLabel extends BaseImageLabel {

	public MultiImageLabel(final float x_, final float y_, final TabledTextureRegion tabledTextureRegion_) {
		super(x_, y_, tabledTextureRegion_.getCellWidth(), tabledTextureRegion_.getCellHeight(), tabledTextureRegion_);
	}

	public MultiImageLabel(final float x_, final float y_, final float w_, final float h_, final TabledTextureRegion tabledTextureRegion_) {
		super(x_, y_, w_, h_, tabledTextureRegion_);
	}

	public MultiImageLabel(final float x_, final float y_, final TabledTextureRegion tabledTextureRegion_, final RectangleVertexBuffer vertexBuffer_) {
		super(x_, y_, tabledTextureRegion_.getCellWidth(), tabledTextureRegion_.getCellHeight(), tabledTextureRegion_, vertexBuffer_);
	}

	public MultiImageLabel(final float x_, final float y_, final float w_, final float h_, final TabledTextureRegion tabledTextureRegion_, final RectangleVertexBuffer vertexBuffer_) {
		super(x_, y_, w_, h_, tabledTextureRegion_, vertexBuffer_);
	}

	@Override
	public TabledTextureRegion getTextureRegion() {
		return (TabledTextureRegion) super.getTextureRegion();
	}

	public int getCurrentCellIndex() {
		return this.getTextureRegion().getCurrentCellIndex();
	}

	public void setCurrentCellIndex(final int index_) {
		this.getTextureRegion().setCurrentCellIndex(index_);
	}

	public void setCurrentCellIndex(final int column_, final int row_) {
		this.getTextureRegion().setCurrentCellIndex(column_, row_);
	}

	public void nextCell() {
		this.getTextureRegion().nextCell();
	}
}
